<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta name="description" content="linphone-iphone是Linphone官方提供的iPhone版本源码，源代码结构可谓是相当庞大，不得不做些记录，现记录与此. 流程1. 初始化startLibLinphone （1）模块初始化，包含mediastreamer2、ilbc、silk、amr、x264、h264、bcg729   ms_init(); libmsilbc_init(); libmssilk_init();">
<meta property="og:type" content="article">
<meta property="og:title" content="linphone-iphone代码解读">
<meta property="og:url" content="http://smallmuou.gitee.io/blog/2015/02/05/2015-02-05-linphone-iphone代码解读/index.html">
<meta property="og:site_name" content="smallmuou&#39;s blog">
<meta property="og:description" content="linphone-iphone是Linphone官方提供的iPhone版本源码，源代码结构可谓是相当庞大，不得不做些记录，现记录与此. 流程1. 初始化startLibLinphone （1）模块初始化，包含mediastreamer2、ilbc、silk、amr、x264、h264、bcg729   ms_init(); libmsilbc_init(); libmssilk_init();">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2020-04-16T01:15:21.798Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="linphone-iphone代码解读">
<meta name="twitter:description" content="linphone-iphone是Linphone官方提供的iPhone版本源码，源代码结构可谓是相当庞大，不得不做些记录，现记录与此. 流程1. 初始化startLibLinphone （1）模块初始化，包含mediastreamer2、ilbc、silk、amr、x264、h264、bcg729   ms_init(); libmsilbc_init(); libmssilk_init();">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://smallmuou.gitee.io/blog/2015/02/05/2015-02-05-linphone-iphone代码解读/"/>





  <title>linphone-iphone代码解读 | smallmuou's blog</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">smallmuou's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"><a href="https://github.com/smallmuou">https://github.com/smallmuou</a></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blog/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/02/05/2015-02-05-linphone-iphone代码解读/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">linphone-iphone代码解读</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-02-05T00:00:00+08:00">
                2015-02-05
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/音视频/" itemprop="url" rel="index">
                    <span itemprop="name">音视频</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>linphone-iphone是Linphone官方提供的iPhone版本源码，源代码结构可谓是相当庞大，不得不做些记录，现记录与此.</p>
<h2 id="流程"><a href="#流程" class="headerlink" title="流程"></a><a href="http://fossies.org/dox/linphone-3.7.0" target="_blank" rel="noopener">流程</a></h2><h3 id="1-初始化startLibLinphone"><a href="#1-初始化startLibLinphone" class="headerlink" title="1. 初始化startLibLinphone"></a>1. 初始化startLibLinphone</h3><ul>
<li>（1）模块初始化，包含mediastreamer2、ilbc、silk、amr、x264、h264、bcg729</li>
</ul>
<pre>
ms_init();
libmsilbc_init();
libmssilk_init(); 
libmsamr_init();
libmsx264_init();
libmsopenh264_init();
libmsbcg729_init();</pre>

<ul>
<li>（2）创建linphone core(createLinphoneCore)</li>
</ul>
<pre>
theLinphoneCore = linphone_core_new_with_config (&linphonec_vtable
                             ,configDb
                             ,self /* user_data */);</pre>
linphonec_vtable为所有回调接口(见LinphoneManager.m)

<pre>
static LinphoneCoreVTable linphonec_vtable = {
.show =NULL,
.call_state_changed =(LinphoneCoreCallStateChangedCb)linphone_iphone_call_state,
.registration_state_changed = linphone_iphone_registration_state,
.notify_presence_received=NULL,
.new_subscription_requested = NULL,
.auth_info_requested = NULL,
.display_status = linphone_iphone_display_status,
.display_message=linphone_iphone_log,
.display_warning=linphone_iphone_log,
.display_url=NULL,
.text_received=NULL,
.message_received=linphone_iphone_message_received,
.dtmf_received=NULL,
   .transfer_state_changed=linphone_iphone_transfer_state_changed,
   .is_composing_received = linphone_iphone_is_composing_received,
   .configuring_status = linphone_iphone_configuring_status_changed,
   .global_state_changed = linphone_iphone_global_state_changed
};</pre>

<p>LinphoneCoreVTable包含:</p>
<pre><code>* global_state_changed 全局状态改变回调
* registration_state_changed 注册状态改变回调
* call_state_changed 呼叫状态改变回调
* ...(详见linphonecore.h)
</code></pre><ul>
<li>（3）初始化audio session</li>
</ul>
<pre>
AVAudioSession *audioSession = [AVAudioSession sharedInstance]    ;
BOOL bAudioInputAvailable= audioSession.inputAvailable    ;
[audioSession setActive:NO error: &err    ]</pre>

<h3 id="2-注册"><a href="#2-注册" class="headerlink" title="2. 注册"></a>2. 注册</h3><ul>
<li>（1）linphone_auth_info_new 生成认证信息</li>
<li>（2）linphone_core_clear_all_auth_info 清空所有认证信息</li>
<li>（3）linphone_core_add_auth_info添加认证信息</li>
</ul>
<h3 id="3-配置项"><a href="#3-配置项" class="headerlink" title="3. 配置项"></a>3. 配置项</h3><p>配置项采用InAppSettings第三方库来实现的，存储于InAppSettings.bundle中得plist文件下，在LinphoneManager初始化会通过migrateFromUserPrefs来同步一次配置项；<br>在退出设置界面时会调用[LinphoneCoreSettingsStore synchronize]来生效配置，如下是一些常用的配置接口:</p>
<pre>
linphone_core_set_sip_transports 设置sip传输协议有TCP、UDP、TLS
linphone_address_set_username 设置用户名
linphone_address_set_domain 设置域名
linphone_auth_info_new 创建认证信息，包含用户名、密码、域名
linphone_core_add_auth_info 添加认证信息
linphone_core_enable_payload_type 音视频开关配置</pre>

<h3 id="4-来电"><a href="#4-来电" class="headerlink" title="4. 来电"></a>4. 来电</h3><p>当有来电时，会触发call_state_changed发生变化（linphonec_vtable），于是会调用回调linphone_iphone_call_state</p>
<pre>
static void linphone_iphone_call_state(LinphoneCore *lc, LinphoneCall* call, LinphoneCallState state,const char* message) {
[(LinphoneManager*)linphone_core_get_user_data(lc) onCall:call StateChanged: state withMessage:  message];
}</pre>

<p>呼叫状态值如下:</p>
<pre>
typedef enum _LinphoneCallState{
LinphoneCallIdle = 0, //初始化状态
LinphoneCallIncomingReceived = 1, //来电
LinphoneCallOutgoingInit = 2, //开始呼出
LinphoneCallOutgoingProgress = 3, //正在处理呼出
LinphoneCallOutgoingRinging = 4, //呼出正在响铃
LinphoneCallOutgoingEarlyMedia = 5,
LinphoneCallConnected = 6, //接通
LinphoneCallStreamsRunning = 7, //媒体流通道构建成功
LinphoneCallPausing = 8, 
LinphoneCallPaused = 9,
LinphoneCallResuming = 10,
LinphoneCallRefered = 11,//有新来电，转出当前回话
LinphoneCallError = 12,
LinphoneCallEnd = 13, //结束
LinphoneCallPausedByRemote = 14, //远程结束
LinphoneCallUpdatedByRemote = 15, //配置更新，如视频开启
LinphoneCallIncomingEarlyMedia = 16,
LinphoneCallUpdating = 17,
LinphoneCallReleased = 18
} LinphoneCallState;</pre>

<h3 id="5-接听"><a href="#5-接听" class="headerlink" title="5. 接听"></a>5. 接听</h3><ul>
<li>弹出IncomingCallViewController</li>
</ul>
<pre>
linphone_iphone_call_state -> [LinphoneManager onCall:StateChanged:withMessage] -> [PhoneMainView callUpdate]->[PhoneMainView displayIncomingCall] -> IncomingCallViewController</pre>

<ul>
<li>点击接听</li>
</ul>
<pre>
onAcceptClick -> [PhoneMainView incomingCallAccepted] -> acceptCall->linphone_core_accept_call_with_params</pre>

<h3 id="6-呼出"><a href="#6-呼出" class="headerlink" title="6. 呼出"></a>6. 呼出</h3><ul>
<li>呼出</li>
</ul>
<pre>
DialerViewController ->[UICallButton touchUp:]-> [LinphoneManager call:displayName:transfer:] -> linphone_core_invite_address_with_params</pre>

<h3 id="7-摄像头设备"><a href="#7-摄像头设备" class="headerlink" title="7. 摄像头设备"></a>7. 摄像头设备</h3><ul>
<li>前置后置</li>
</ul>
<pre>
linphone_core_get_video_devices 获取所有设备号
linphone_core_set_video_device 设置设备号
linphone_core_get_video_device 获取当前设备号</pre>

<h3 id="8-摄像头视频显示"><a href="#8-摄像头视频显示" class="headerlink" title="8. 摄像头视频显示"></a>8. 摄像头视频显示</h3><ul>
<li>摄像头模块初始化</li>
</ul>
<pre>
MSWebCamDesc ms_v4ios_cam_desc = {
"AV Capture",
&ms_v4ios_detect,
&ms_v4ios_cam_init,
&ms_v4ios_create_reader,
NULL
}; </pre>

<p>startLibLinphone -&gt; ms_init -&gt; ms_voip_init -&gt; ms_factory_init_voip -&gt; ms_web_cam_manager_register_desc(ms_web_cam_desc[i]) -&gt; cam_detect -&gt; ms_v4ios_cam_desc.detect -&gt; ms_v4ios_detect</p>
<pre>
 NSArray * array = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
 for(i = 0 ; i < [array count]; i++)
 {
    AVCaptureDevice * device = [array objectAtIndex:i];
     MSWebCam *cam=ms_web_cam_new(&ms_v4ios_cam_desc);
     cam->name= ms_strdup([[device modelID] UTF8String]);
     cam->data = ms_strdup([[device uniqueID] UTF8String]);
     ms_web_cam_manager_add_cam(obj,cam);
 }</pre>

<p>PS:ms_v4ios_cam_desc位于ms_web_cam_descs数组中, MSWebCamManager负责管理所有摄像头</p>
<pre>
struct _MSWebCamManager{
     MSList *cams;
     MSList *descs;
 };
</pre>

<ul>
<li>IOSCapture初始化，设置OUTPUT Capture</li>
</ul>
<pre>
MSFilterDesc ms_ioscapture_desc = {
.id=MS_V4L_ID,
    .name="MSioscapture",
    .text="A video for IOS compatible source filter to stream pictures.",
    .ninputs=0,
  .noutputs=1,
  .category=MS_FILTER_OTHER,
  .init=ioscapture_init,
  .preprocess=ioscapture_preprocess,
  .process=ioscapture_process,
  .postprocess=ioscapture_postprocess,
  .uninit=ioscapture_uninit,
  .methods=methods
}; </pre>

<p>ms_v4ios_create_reader -&gt; ms_filter_new_from_desc(&amp;ms_ioscapture_desc) -&gt; ms_filter_new_from_desc -&gt; ms_factory_create_filter_from_desc -&gt; ms_ioscapture_desc.init -&gt; ioscapture_init -&gt; [IOSCapture initWithFrame:] -&gt; initIOSCapture </p>
<ul>
<li><p>启动摄像头<br>  linphone_core_iterate -&gt; toggle_video_preview -&gt; video_preview_start -&gt; ms_web_cam_create_reader -&gt; ms_v4ios_cam_desc.create_reader -&gt; ms_v4ios_create_reader -&gt; openDevice -&gt; 初始化AVCaptureSession</p>
</li>
<li><p>开始抓拍<br>  video_stream_payload_type_changed(videostream.c) -&gt; mediastream_payload_type_changed(mediastream.c) -&gt; media_stream_change_decoder -&gt; ms_filter_preprocess -&gt; ioscapture_preprocess -&gt; start -&gt; [AVCaptureSession startRunning]<br>PS: 当payload_type发生改变时就会触发video_stream_payload_type_changed（video_stream_start初始化）</p>
</li>
<li><p>视频显示<br>通过代理captureOutput:didOutputSampleBuffer:fromConnection来接收摄像头数据</p>
</li>
</ul>
<h3 id="9-声音"><a href="#9-声音" class="headerlink" title="9. 声音"></a>9. 声音</h3><p>startLibLinphone -&gt; ms_init -&gt; ms_voip_init -&gt; ms_factory_init_voip -&gt; ms_snd_card_manager_register_desc -&gt; card_detect -&gt; au_detect -&gt; ms_snd_card_new_with_name -&gt; au_init</p>
<h3 id="10-发送声音"><a href="#10-发送声音" class="headerlink" title="10. 发送声音"></a>10. 发送声音</h3>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blog/2015/02/05/2015-02-05-牛逼的ImageMagick/" rel="next" title="牛逼的ImageMagick">
                <i class="fa fa-chevron-left"></i> 牛逼的ImageMagick
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blog/2015/02/06/2015-02-06-iOS 摄像头操作/" rel="prev" title="iOS 摄像头操作">
                iOS 摄像头操作 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">smallmuou</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog/archives/">
              
                  <span class="site-state-item-count">197</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/blog/categories/index.html">
                  <span class="site-state-item-count">12</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/smallmuou" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-globe"></i>GitHub</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#流程"><span class="nav-number">1.</span> <span class="nav-text">流程</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-初始化startLibLinphone"><span class="nav-number">1.1.</span> <span class="nav-text">1. 初始化startLibLinphone</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-注册"><span class="nav-number">1.2.</span> <span class="nav-text">2. 注册</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-配置项"><span class="nav-number">1.3.</span> <span class="nav-text">3. 配置项</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#4-来电"><span class="nav-number">1.4.</span> <span class="nav-text">4. 来电</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#5-接听"><span class="nav-number">1.5.</span> <span class="nav-text">5. 接听</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#6-呼出"><span class="nav-number">1.6.</span> <span class="nav-text">6. 呼出</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#7-摄像头设备"><span class="nav-number">1.7.</span> <span class="nav-text">7. 摄像头设备</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#8-摄像头视频显示"><span class="nav-number">1.8.</span> <span class="nav-text">8. 摄像头视频显示</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#9-声音"><span class="nav-number">1.9.</span> <span class="nav-text">9. 声音</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#10-发送声音"><span class="nav-number">1.10.</span> <span class="nav-text">10. 发送声音</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">smallmuou</span>

  
</div>

    <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

    <span id="busuanzi_container_site_pv">总访问量<span id="busuanzi_value_site_pv"></span>次</span>
    <span class="post-meta-divider">|</span>



  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/blog/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/blog/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
